#include "mainwindow.h"
#include <QApplication>
#include <QSysInfo>

QString pathPre;

int main(int argc, char *argv[])
{
    QString sysType;
    sysType = QSysInfo::productType();
    if(sysType == "osx")
        pathPre = "../../../../tmp/";
    else
        pathPre = "../tmp/";
    QTextCodec::setCodecForLocale(QTextCodec::codecForName("UTF-8"));
    QApplication a(argc, argv);
    MainWindow w;
    w.show();
    return a.exec();
}
